<script type="text/javascript">
	$(document).ready(function  (){
		var c = ""+'<?php  echo $this->flashMessages(); ?>';
		if(c.length > 0){
			$.colorbox({html:c});
		}
	} );
</script>